package com.example.WebSocketDemo.mapper;

import com.example.WebSocketDemo.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;
@Mapper
public interface UserMapper {
    List<User> getAllUser();

    User login(@Param("username") String username,@Param("pwd") String password);

    List<User> getUserFriend(@Param("id")String userId);

    User getUserInfoById(String id);

    void userRegister(User user);

    List<User> searchUser(String info);

    void modifyUserInfo(User user);
}
